﻿@model Classified.Web.Models.LogOnModel
@{
    ViewBag.Title = "Log On";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.CustomValidationSummary("Login was unsuccessful. Please correct the errors and try again.")
<div class="row">
<div class="logOndv span12">
    <h2>Sign In</h2>
    @using (Html.BeginForm())
    {
        <div class="span6 thumbnail">
            <fieldset>
                <legend>
                    <h4>
                        Already a Member</h4>
                </legend>
                <div class="clearfix">
                    @Html.LabelFor(m => m.UserName)
                    <div class="input">
                        @Html.TextBoxFor(m => m.UserName)
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                </div>
                <div class="clearfix">
                    @Html.LabelFor(m => m.Password)
                    <div class="input">
                        @Html.PasswordFor(m => m.Password)
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                </div>
                <div class="clearfix">
                    @Html.LabelFor(m => m.RememberMe)
                    <div class="input">
                        @Html.CheckBoxFor(m => m.RememberMe)</div>
                </div>
                <div class="clearfix">
                    <div class="input">
                        <input class="btn btn-info" type="submit" value="Log On" />
                        <a  href="@Url.Action("LostPassword", new { controller = "Account" })">Forget Your Password?</a>
                    </div>
                </div>
            </fieldset>
        </div>
  
    }
    @Html.Partial("LogOnByEmailID", new Classified.Domain.Entities.User())
    
    </div>
    <div class="clear"></div>
 
    <div class="span11">
        <div class="span11" style="margin-top: 25px;">
        If you do not have an account or never posted an ad on Adsx24: @Html.ActionLink("Register", "Register", "Account")</div>
    </div>

</div>